const app=getApp;
Page({
  data: {
    phone: '',
    password: ''
  },
 edituser:function(e){
   var that = this;
   var username=e.detail.value.username;
   var password=e.detail.value.password;
  //  app.globalData.userInfo.username = username;
  //  app.globalData.userInfo['password'] = password;
   
   console.log(username);
   console.log(password);
   console.log(e);

   wx.switchTab({
     url: '../index/index',
   })
  //  app.getUserInfo();
 }

   
})
